// console.log('bonjour')
// console.log('你好')
const lang = 'fr'

const languageOption = {
  cn: {
    hello: '你好'
  },
  fr: {
    hello: 'bonjour'
  },
  en: {
    hello: 'hello'
  }
}

function t(key) {
  return languageOption[lang][key]
}

console.log(t('hello'))
